//
//  IMIPipelineInput.h
//  MiHome
//
//  Created by 阎超 on 12/05/2017.
//  Copyright © 2017 小米移动软件. All rights reserved.
//

#ifndef IMIPipelineInput_h
#define IMIPipelineInput_h

#import "IMIMediaFrameworkBase.h"

@interface IMIPipelineInput : IMIPipelineBase

- (instancetype)initWithFlag:(NSInteger)flag;
- (void)fini;
- (NSInteger)putSomething:(NSString*)name withValue:(id)value;
- (NSInteger)getSomething:(NSString*)name withValue:(id)value;
- (NSInteger)startVideoPlayer:(id)terminal withDecodeBloack:(fMediaStreamDataBlock)fBlock;
- (NSInteger)stopVideoPlayer;
- (NSInteger)startAudioPlayer:(id)terminal withDecodeBloack:(fMediaStreamDataBlock)fBlock;
- (NSInteger)stopAudioPlayer;
- (NSInteger)deliverFrame:(IMIMediaFrame*)frame;
- (UIImage*)snapshotPicture:(fAsyncCaptureBlock)fBlock;
- (void)play:(id)terminal;
- (void)pause;
- (NSInteger)getCurrentPosition;

@end

#endif /* IMIPipelineInput_h */
